// 2013-8-1下午12:04:14  net.betou.trade.entity.main.base.BaseUserExt.java

package net.betou.trade.entity.main.base;

import java.io.Serializable;
import java.util.Date;

import net.betou.trade.entity.main.UserExt;
import net.betou.trade.entity.main.User;

/**
 * 
 * @author 叶装装
 */
public abstract class BaseUserExt implements Serializable{
	
	public BaseUserExt( ){}
	
	private Integer id;
	
	private String address;
	private String idcard;
	private String realname;
	private String tel;
	private String qq;
	private Boolean gender;		// 性别
	private Date birthday; // 生日
	
	// ------------------------
	private Integer age;   // 年龄
	private String accountName; // 开户名称
	private String account;    // 交易账号
	private String bis;    // 结算银行 
	private String bankAccount;  //银行账号
	private Double accountFunds; // 账户资金
	private String cardType; // 证件类型
	
	// one to one
	private User user; 
	
	public Integer getId( ) {
		return id;
	}




	public void setId( Integer id ) {
		this.id = id;
	}




	public String getAddress( ) {
		return address;
	}




	public void setAddress( String address ) {
		this.address = address;
	}




	public String getIdcard( ) {
		return idcard;
	}




	public void setIdcard( String idcard ) {
		this.idcard = idcard;
	}




	public String getRealname( ) {
		return realname;
	}




	public void setRealname( String realname ) {
		this.realname = realname;
	}




	public String getTel( ) {
		return tel;
	}




	public void setTel( String tel ) {
		this.tel = tel;
	}




	public String getQq( ) {
		return qq;
	}




	public void setQq( String qq ) {
		this.qq = qq;
	}




	public Boolean getGender( ) {
		return gender;
	}




	public void setGender( Boolean gender ) {
		this.gender = gender;
	}




	public Date getBirthday( ) {
		return birthday;
	}




	public void setBirthday( Date birthday ) {
		this.birthday = birthday;
	}




	public User getUser( ) {
		return user;
	}




	public void setUser( User user ) {
		this.user = user;
	}


private int hashCode = Integer.MIN_VALUE;
	
	public boolean equals( Object obj ) {
		if( null == obj )
			return false;
		if( !( obj instanceof UserExt ) )
			return false;
		else{
			UserExt ext = ( UserExt ) obj;
			if( null == this.getId( ) || null == ext.getId( ) )
				return false;
			else
				return( this.getId( ).equals( ext.getId( ) ) );
		}
	}

	public int hashCode( ) {
		if( Integer.MIN_VALUE == this.hashCode ){
			if( null == this.getId( ) )
				return super.hashCode( );
			else{
				String hashStr = this.getClass( ).getName( ) + ":" + this.getId( ).hashCode( );
				this.hashCode = hashStr.hashCode( );
			}
		}
		return this.hashCode;
	}


	private static final long serialVersionUID = 4532747263403499312L;

	public Integer getAge( ) {
		return age;
	}




	public void setAge( Integer age ) {
		this.age = age;
	}




	public String getAccountName( ) {
		return accountName;
	}




	public void setAccountName( String accountName ) {
		this.accountName = accountName;
	}




	public String getAccount( ) {
		return account;
	}




	public void setAccount( String account ) {
		this.account = account;
	}




	public String getBis( ) {
		return bis;
	}




	public void setBis( String bis ) {
		this.bis = bis;
	}




	public String getBankAccount( ) {
		return bankAccount;
	}




	public void setBankAccount( String bankAccount ) {
		this.bankAccount = bankAccount;
	}




	public Double getAccountFunds( ) {
		return accountFunds;
	}




	public void setAccountFunds( Double accountFunds ) {
		this.accountFunds = accountFunds;
	}




	public String getCardType( ) {
		return cardType;
	}




	public void setCardType( String cardType ) {
		this.cardType = cardType;
	}
	
	
}
